home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
lcppb.zip
/
LCPPANS.ZIP
/
TICKS.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-08
|
515b
|
23 lines
// ticks.cpp -- Display system clock ticker
#include <iostream.h>
#include <conio.h>
#include <dos.h>
main()
{
unsigned long far *ticks = (unsigned long far *)MK_FP(0x0040, 0x006C);
cout << "System ticker. Press any key to quit.\n";
while (!kbhit())
cout << *ticks << char(13);
}
// Copyright (c) 1990 by Tom Swan. All rights reserved
// Revision 1.00 Date: 12/05/1990 Time: 07:48 am
// Revision 1.01 Date: 07/08/1991 Time: 05:41 pm
// Converted for Borland C++ 2.0